﻿<Window x:Class="AppUpdateInstaller.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ConsoleHoster Updater" Height="151" Width="350" ResizeMode="NoResize" SizeToContent="WidthAndHeight" Loaded="Window_Loaded_1">
    <Window.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <ProgressBar HorizontalAlignment="Center" Height="20" VerticalAlignment="Center" Width="200" IsIndeterminate="True" />

        <TextBlock Text="{Binding Status}" Grid.Row="1" HorizontalAlignment="Center" />

        <Button Content="Finish" HorizontalAlignment="Center" VerticalAlignment="Bottom" Grid.Row="2" Width="100"  Visibility="{Binding InstallationCompleted, Converter={StaticResource BooleanToVisibilityConverter}}" Command="{Binding Path=FinishInstallationCommand}" />
    </Grid>
</Window>
